package com.tiancheng.trade.payment.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.tiancheng.trade.commom.core.enums.PaymentChannelEnum;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;
import java.util.Date;

/**
 * 优惠券清分文件表
 *
 * @author likailun
 * @date 2021-12-15 20:45
 */
@TableName(value = "coupon_settle_file")
@Data
public class CouponSettleFile implements Serializable {
    // 主键
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 商户集团编号
     */
    private String groupCode;

    /**
     * 渠道：cmb=计平；ums=银联商务
     *
     * @see PaymentChannelEnum
     */
    private String channel;

    /**
     * 清分文件名
     */
    private String fileName;

    /**
     * 转出笔数
     */
    private Integer transferOutNum;

    /**
     * 转出金额
     */
    private Integer transferOutAmount;

    /**
     * 转出成功笔数
     */
    private Integer transferOutScNum;

    /**
     * 转出成功金额
     */
    private Integer transferOutScAmount;

    /**
     * 转出失败笔数
     */
    private Integer transferOutErNum;

    /**
     * 划付-部分成功金额
     */
    private Integer transferOutErAmount;

    /**
     * 转入笔数
     */
    private Integer transferInNum;

    /**
     * 转入金额
     */
    private Integer transferInAmount;

    /**
     * 转入成功笔数
     */
    private Integer transferInScNum;

    /**
     * 转入成功金额
     */
    private Integer transferInScAmount;

    /**
     * 转入失败金额
     */
    private Integer transferInErNum;
    /**
     * 转入失败金额
     */
    private Integer transferInErAmount;

    private Date createDate;

    private Date updateDate;

    /**
     * 清分日期
     */
    private LocalDate clearDate;

    /**
     * 回盘文件下载地址
     */
    private String backFileUrl;

    /**
     * 业务类型,0-平台合并收取管理费，1：转款补贴
     */
    private Integer businessType;
    /**
     * 手续费
     */
    private Integer serviceAmount;

}